﻿using System;
using System.Collections.Generic;
using System.Runtime.Serialization;
using System.Text;
using System.Xml.Linq;

namespace Ocean.His.MedicalInsurance.BaseInfo
{
    [DataContract]
    public class SI1201MedinsInfo
    {
        /// <summary>
        /// 定点医疗服务机构类型
        /// 
        /// </summary>
        [DataMember(Name = "fixmedins_type")]
        public string FixmedinsType { get; set; }

        /// <summary>
        /// 定点医药机构名称
        /// 输入关键字模糊查询
        /// </summary>
        [DataMember(Name = "fixmedins_name")]
        public string FixmedinsName { get; set; }

        /// <summary>
        /// 定点医药机构编号
        /// 查询定点零售药店时填写定点零售药店代码；查询定点医疗机构时填写定点医疗机构代码。
        /// </summary>
        [DataMember(Name = "fixmedins_code")]
        public string FixmedinsCode { get; set; }
    }

    /// <summary>
    /// 
    /// </summary>
    [DataContract]
    public class SI1201InputModel
    {
        [DataMember(Name = "medinsinfo")]
        public SI1201MedinsInfo MedinsInfo { get; set; }

        public SI1201InputModel(SI1201MedinsInfo si1201MedinsInfo) 
        {
            MedinsInfo = si1201MedinsInfo;
        }
    }

    /// <summary>
    /// 医药机构信息获取
    /// </summary>
    [DataContract]
    public class SI1201RequestModel : SIBaseRequestModel
    {
        /// <summary>
        /// 交易输入
        /// </summary>
        [DataMember(Name = "input")]
        public SI1201InputModel Input { get; set; }

        public SI1201RequestModel(MedicalInsuranceOption medicalInsuranceOption,
            SI1201MedinsInfo medinsInfo) : base(medicalInsuranceOption)
        {
            Infno = "1201";
            Input = new SI1201InputModel(medinsInfo);
        }
    }
}
